package com.cbtx.networklib.log

import okhttp3.internal.platform.Platform

/**
 * author : joker.peng
 * e-mail : joker@fiture.com
 * date   : 2021/7/1 10:14 AM
 * desc   :
 */
interface Logger {

    fun log(level: Int, tag: String?, msg: String?)

    companion object {
        val DEFAULT: Logger = object : Logger {
            override fun log(level: Int, tag: String?, message: String?) {
                Platform.get().log(level, message!!, null)
            }
        }
    }
}
